import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    redirect: '/StackChart'
  },
  {
    path: '/Barline',
    name: 'Barline',
    component: () => import('../views/ViewBarLine.vue')
  },
  {
    path: '/StackChart',
    name: 'StackChart',
    component: () => import('../views/ViewEchartsStack.vue')
  },
  // {
  //   path: '/Xiangmu',
  //   name: 'Xiangmu',
  //   component: () => import('../views/Xiangmu360.vue')
  // },
  // {
  //   path: '/XiangmuFushi',
  //   name: 'XiangmuFushi',
  //   component: () => import('../views/XiangmuFushi.vue')
  // },
  // {
  //   path: '/MainPage',
  //   name: 'MainPage',
  //   component: () => import('../views/MainPage.vue')
  // },
]

const router = new createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
